Skip to main content
Version: 11.x

Type alias: HTTPLinkOptions<TRoot>

HTTPLinkOptions: <TRoot> HTTPLinkBaseOptions< TRoot > & {headers: HTTPHeaders | (opts) => HTTPHeaders | Promise< HTTPHeaders >;}

HTTPLinkOptions.headers

optional headers: HTTPHeaders | (opts) => HTTPHeaders | Promise< HTTPHeaders >

Headers to be set on outgoing requests or a callback that of said headers

http://trpc.io/docs/client/headers

Type parameters

Parameter
TRoot extends AnyRootTypes

Source

packages/client/dist/links/httpLink.d.ts:4


Generated using TypeDoc and typedoc-plugin-markdown